<?php


/**
 * Description of Patient
 *
 * @author [samantha Jayasinghe] [isamantha@gmail.com]
 */
class Patient {
    
    public $id ;
    public $code ;
    public $firstName ;
    public $middleName ;
    public $lastName;
    public $sex;
    public $dob ;
    public $gardinTitle ;
    public $gardinName;
    public $homeAddress;
    public $district ;
    public $mohDevision;
    public $gnArea;
    
    /**
     * Get Full Name of an employee
     * @return string
     */
    public function getFullName( ){
        $fullName = null;
        if(!empty( $this->firstName )){
            $fullName .= $this->firstName;
        }
        if( !empty( $this->middleName ) ){
            $fullName .= " ". $this->fmiddleName;
        }
        if( !empty( $this->lastName ) ){
            $fullName .= " ". $this->lastName;
        }
        return $fullName;
    }
    
}

?>
